﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PrintTmp.aspx.cs" Inherits="FL.WebUI.ReportList.PrintTmp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%=Request["title"] %></title>
    <script src="../Scripts/grfs_js/CreateControl.js"></script>
    <script src="../Scripts/grfs_js/GRInstall.js"></script>
    <script type="text/javascript">
        Install_InsertReport();
    </script>
</head>
<body>
    <script type="text/javascript">
        var Installed = Install_Detect();

        var dataUrl = '<%=Request["dataUrl"]%>';
         var grfName = '<%=Request["grfName"]%>';
        var applyNo = '<%=Request["applyNo"]%>';
        var applyBeginDt = '<%=Request["applyBeginDt"]%>';
        var applyEndDt = '<%=Request["applyEndDt"]%>';
        var portNo = '<%=Request["portNo"]%>';
        var operator = '<%=Request["operator"]%>';
        var applyDt = '<%=Request["applyDt"]%>';
        var operatorDtBeginDt = '<%=Request["operatorDtBeginDt"]%>';
        var operatorDtEndDt = '<%=Request["operatorDtEndDt"]%>';

        var url = dataUrl + applyNo + "&applyBeginDt=" + applyBeginDt + "&applyEndDt=" + applyEndDt + "&portNo=" + portNo + "&operator=" + operator + "&operatorDtBeginDt=" + operatorDtBeginDt + "&operatorDtEndDt=" + operatorDtEndDt;

        if (grfName == "wzba" || grfName == "wzba_bar") {  //无纸备案清单 打印(带条码)
            dataUrl = url + "&reportname=" + grfName;
        } else {
            dataUrl = dataUrl + "&reportname=" + grfName;
        }
        if (grfName == "wts") {
            dataUrl += "&applyDt=" + applyDt;
        }

        dataUrl = encodeURI(dataUrl);
        if (grfName == "apply_zcd_wz") {
            dataUrl = dataUrl.replace("apply_zcd_wz", "apply_zcd");
        }
        //console.log(dataUrl);//../BusZhiDan/Exppost?id=1163800&reportname=apply
        CreatePrintViewerEx("100%", "800px", "../Grfs/" + grfName + ".grf?d=" + Date.now, dataUrl, true,
      "<param name=EditMode value=2>");
    </script>
</body>
</html>
